import request from './index'
// 是否全局消息提示
const requestOptions = {
  globalErrorMessage: true,
  globalSuccessMessage: true
}

// 获取权限列表
export function getRightsList(data?: any) {
  return request.get(`rights/${data.type}`, {
    requestOptions
  })
}
